home *** CD-ROM | disk | FTP | other *** search
/ Champak 40 / Vol 40.iso / games / skates.swf / scripts / DefineButton2_236 / BUTTONCONDACTION on(keyPress Up).as < prev   
Encoding:
Text File  |  2007-04-20  |  904 b   |  23 lines

  1. on(keyPress "<Up>"){
  2.    if(_root.bonusMove == "barrel" and _root.player.hand == false and _root.player.jumpin == false and _root.hit == false and playOK == 1)
  3.    {
  4.       _root.bonusMove = "";
  5.       _root.bonuses.gotoAndStop(1);
  6.       _root.soundOn != 1 ? 0 : _root.SFXsuper.gotoAndPlay(2);
  7.       _root.player.gotoAndPlay("highJump");
  8.       _root.player.board.gotoAndPlay("barrel");
  9.       _root.Jvalue = 5;
  10.       _root.jumpNum = _root.jumpNum + 1;
  11.    }
  12.    if(_root.bonusMove == "kick" and _root.player.hand == false and _root.player.jumpin == false and _root.hit == false and playOK == 1)
  13.    {
  14.       _root.bonusMove = "";
  15.       _root.bonuses.gotoAndStop(1);
  16.       _root.soundOn != 1 ? 0 : _root.SFXsuper.gotoAndPlay(2);
  17.       _root.player.gotoAndPlay("highJump");
  18.       _root.player.board.gotoAndPlay("kick");
  19.       _root.Jvalue = 10;
  20.       _root.jumpNum = _root.jumpNum + 1;
  21.    }
  22. }
  23.